<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="cn.school.dao.*,cn.school.service.*,cn.school.entity.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<table border="1" >
<tr>
<td>序号</td><td>年级名称</td>
</tr>
<%
Service2 service=new Service2();
List<Grade> list=service.getSubInfo();
for(Grade g:list){
%>	
<tr>
	<td><%=g.getId() %></td><td><%=g.getGname() %></td>
</tr>
<%}%>

</table>
</body>
</html>